<?php
echo form::open('user/registrationWizard/next', array('id'=>'wizardForm'));

// Exercise group
if ($this->data->appliesForStandardProgram && count($exerciseGroupOptions) > 0) {
    echo '<h3>' . text::getEscaped('registration.exerciseGroup') . '</h3>';
    echo '<p class="description">' . text::getEscaped('registration.exerciseGroup-info') . '</p>';
    echo form::radioButtonList($formData, $exerciseGroupOptions, 'exercise_group_code');
}

// Karmayoga type
if ($this->data->appliesForKarmayoga) {
    echo '<h3>' . text::getEscaped('registration.karmayogaType') . '</h3>';
    echo '<p class="description">' . text::getEscaped('registration.karmayogaType-info') . '</p>';
    form::selectOneRadio('karmayoga_type_code', $formData['karmayoga_type_code'], $formData);
    echo form::radioButtonList($formData, $karmayogaTypeOptions, 'karmayoga_type_code');
}

// Program notes
echo '<h2>' . text::getEscaped('registration.programNotes-header') . '</h2>';
echo '<p class="description">' . text::getEscaped('registration.programNotes-help') . '</p>';
echo form::textarea('program_notes', $formData['program_notes']);

echo form::close();